<script type="text/javascript" charset="utf-8">
	function fun(){
		window.document.location.href="{:U('Team/Index/searchTeam')}";
	}
	function callbackfun(res,msg){
		if(msg){
			alert(msg);
			$(".load_body").html("");
			$(".ajaxloadhtml").hide();
			return false;
		}
		if(res){
			alert('提交成功，请等待管理员审核');
			$(".load_body").html("");
			$(".ajaxloadhtml").hide();
		}else{
			alert('提交数据失败,请重试');
		}
	}
</script>
<if condition="$isagree eq 1 ">
	<iframe border="0" style="display:none" src="" name="iframe1"></iframe>

	<form method="post" action="__URL__/applyTeam/id/{$Think.get.id}" target="iframe1" style="margin:0 auto;" >
	<input type="hidden" name="id" value="{$list.Id}" />
	<div id="info" style="width:100%;pading-left:-40px;float:left;background-color:#E8E8E8">
		<table style="text-align:center;margin:0 auto;width:87%">
				<tr>
					<td width="70px" style="text-align:left;">团队名称:</td>
					<td style="text-align:left;"><b><span id="JoinTeamName">{$list.Name}</span></b></td>
				</tr>
				<tr>
					<td width="70px" style="text-align:left;">对队长说：</td>
					<td colspan="2" style="text-align:left;"><textarea name="JoinInfo" rows="5" cols="40" id="JoinInfo" style="resize: none;"></textarea></td>
				</tr>
				<tr>
					<td style="text-align:left;"></td>
					<td colspan="3" style="text-align:left"><input type="submit" name="" value="提交" id="joinSubmit" />
					&nbsp;&nbsp;
					<input type="reset" value="重置" />
					&nbsp;&nbsp;
					<input type="button" value="取消" class="closeload" /></td>
				</tr>
		</table>
	</div>
	</form>
<else /> 
<div style="width:100%;height:100px;padding-top:50px;text-align:center;margin:0 auto;">
该团队人员已满，不能加入该团队<br />
<button onclick="fun()">重新搜索团队</button>
</div>
</if>
